<?php


	namespace Midi;

	class Delta implements Chunk {
		
		private $ticks;
		
		public function __construct($ticks) {
			$this->ticks = $ticks;
		}
		
		public function getLength() {
			return strlen($this->toBinary());
		}
		
		public function __toString() {
			return 'Delta value: ' . $this->ticks;
		}
		
		public function toBinary() {
			return Util\Util::getDeltaByteSequence($this->ticks);
		}
		
		public function getData() {
			return array($this->ticks);
		}
		
		
		
		
		
		
		
	}

?>